package com.qidianit.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Package Path: com.qidianit.mes.pojo
 * Author: Alhz
 * Description:
 * Date: 2025/9/16 19:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Supplier {
    private Long id;
    private String code;
    private String name;
    private String address;
    private String contactPerson;
    private String phone;
    private String fax;
    private String email;
    private String description;
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

    private Integer deleteFlag = 0;
}
